This document was prepared with a fixed width font, courier 10.
MultiDog 1.01- A MultiFinder Toy
written by David Hairston
March 28, 1991
*** Notes
I wrote MultiDog, a simple application, out of admiration for “BigFoot”, a very friendly INIT written by Ben Haller. If you can find “BigFoot” you should give it a try! I’ve had no problems with it. However, I do have a
philosophical difference with INITs, in general. MultiFinder has features which make it possible to write applications that can provide services that were previously provided by things like INIT’s and desk accessories. Such services include screensavers, desktop timers and “screen thingies” like MultiDog. INITs usually involve trap patches and therefore risk conflicts.
MultiDog periodically displays the paw prints of an invisible dog as it trots across the screen. It runs in a 32k MultiFinder partition with a minimum of 10k still available, internally. Of course, you could always give MultiDog a bigger MultiFinder partition but that isn’t necessary for normal usage, as distributed. MultiDog has a file size of 12k.
MultiDog can be customized a little (its mostly wired to show my dog). The paw prints are windowPic handles that access the ‘PICT’ #200 (a/o #201) resource. The ‘PICT’ must be 12 pixels wide (horizontal) and 14 pixels tall (vertical) and can be a color ‘PICT’ on machines that have Color QuickDraw. Keep in mind that the dog trots from right to left. Also, remember to place the topleft corner of your ‘PICT’ at 0,0 else the window manager will not correctly display your ‘PICT’ and that color ‘PICT’s need more memory!
You can also use a custom digitized ‘snd ‘ resource #200 to replace the default dog bark that results when a user steps (clicks) on its paws.
MultiDog, in part, derives its performance from a customized WDEF which does not draw a window frame and sets the windows content region equal to its structure region (see Inside Mac, Vol. I, The Window Manager for details).
MultiDog does nothing useful other than break the monotony of a static screen display. MultiDog is freeware (but not public domain). As an application, MultiDog can easily be turned on and off and it remembers its state between launches. MultiDog was written using Think C 4.02!
At the time of release, MultiDog has been tested on Macintoshes with and without color QuickDraw with no problem. Enjoy! You should address comments, suggestions, inquiries, etc. to:
David Hairston
4373 Stanton Ave.
Pittsburgh, PA 15201
*** Version History
1.01 - remove bug that centered rects to GetMainDevice() on non-color Macs.